package meetingcostclock;

import java.util.Locale;


public class Starter {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		startMeetingCostClock(true);
	}
	
	public static void startMeetingCostClock(boolean redirectToSettings) {
		SettingsProvider settings = new SettingsProvider();
		
		Integer noOfParticipants = settings.getNoOfParticipants();
		Integer rate = settings.getRate();
		Locale locale = settings.getLocale();
		boolean onTop = settings.getAlwaysOnTop();
		
		if ((noOfParticipants == null) || (rate == null)) {
			if (redirectToSettings) new SettingsDialog();
		} else {
			new MeetingCostClock(noOfParticipants, rate, locale, onTop);
		}

	}

}
